Skip to content

[4.4] Add model exception for components to start using#41809

Merged
HLeithner merged 2 commits intojoomla:4.4-devfrom
wilsonge:feature/add-model-exception-interface
Sep 20, 2023
Merged

[4.4] Add model exception for components to start using#41809
HLeithner merged 2 commits intojoomla:4.4-devfrom
wilsonge:feature/add-model-exception-interface

Conversation

@wilsonge
Copy link
Contributor

This comes from #38949.

Summary of Changes

Adds an exception interface that can be used by components looking to use exceptions rather than LegacyErrorTrait. We want to add this into an earlier version as possible (i.e. J4) so as we roll out exceptions in j5. extension developers can still catch these exceptions in J4 and require 4.4 or higher.

Testing Instructions

N/A Review class is present. See sample code in linked PR but we will not use this interface until 5.x in core.

Link to documentations

This will be documented once the exceptions have been created for J5 and a note will be added to those docs that exception handling can be ported into extensions and still be 4.4 compatible

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@HLeithner HLeithner merged commit 487dedb into joomla:4.4-dev Sep 20, 2023
@HLeithner
Copy link
Member

thanks

@laoneo laoneo added this to the Joomla! 4.4.0 milestone Sep 20, 2023
@wilsonge wilsonge deleted the feature/add-model-exception-interface branch September 20, 2023 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants